const express = require('express');
const { article, articleDetail, articleList } = require("../controllers/article");
const {auth} = require("../middleware/auth");
const router = express.Router();

router.post('/', auth, article)

router.get('/page:num', auth, articleList)

router.get('/:id', auth, articleDetail)

module.exports = router